<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script src="js/vue.js"></script>
		<script src="js/axios.min.js"></script>
		<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css"/>
	</head>
	<body>
		<div id="app">
			<table class="table">
				<tr>
					<td>ID</td>
					<td>品种</td>
					<td>年龄</td>
					<td>价格</td>
					<td>图片</td>
					<td>操作</td>
				</tr>
				
				<tr v-for="v in dog">
					<td>{{v.ID}}</td>
					<td>{{v.name}}</td>
					<td>{{v.age}}</td>
					<td>{{v.price}}</td>
					<td>{{v.img}}</td>
					<td><button type="button">删除</button></td>
				</tr>
			</table>
			
			
			
			
			
			
			
		</div>
	</body>
</html>
<script>
var app=new Vue({
	el:"#app",
	data:{
		dog:[],
	},methods:{
		limit(p){
			axios.get("http://127.0.0.1:8080/dog/limit?page=",p).then(res=>{
				this.dog=res.data.data.dog
				this.sum=res.data.data.sum
				this.count=res.data.data.count
				this.up=res.data.data.up
				this.down=res.data.data.down
			})
		},
	},created:function(){
		this.limit(1)
	}
})









</script>